package server;

public class gameInterFace {
	/**
    Used when new user registers to game.
    Send: information of new user.
    Receive:    1: If everything ok, just get ok.
                2: If username exists, get appropriate message
                3: If other error, get appropriate message
	 */
//	void register( in User user , in IServiceListener listener);

	/**
   Used when existing user returns to application after closing it.
   Send: information of existing user.
   Receive:    1: If user in game, data of users game and users properties (money, etc...).
               2: If user not in game, get appropriate message.
                3: If error, get appropriate message.
	 */
//	void getUserGame(in User user , in IServiceListener listener);

	/**
   Used when user wants to start a new game.
   Send: Location of device
   Receive:    1: List of maps ( map = "name","list of coordinates closing the map")
               2: If error, get appropriate message.
	 */
//	void getAviliableMaps(in IServiceListener listener);

	/**
   Used when user wants to join an existing game.
   Send: Location of device
   Receive:    1: List of games ( game = "name properties...")
               2: If error, get appropriate message.
	 */
//	void getAviliableGames(in IServiceListener listener);

	/**
   Used when player initiates an action: Buying a street, buying houses, selling property.
   Send: current user , action properties.
   Receive:    1. If ok, ok message (and maybe new users properties).
               2. If not ok, appropriate message
	 */
//	void playerAction(in int actionType , in IServiceListener listener);

	/**
   Used when location of device is changed.
   Send: new coordinates.
   Receive:    1. If nothing special, just an ok message.
               2. If special alert (landed on someone, landed on empty street, etc), appropriate message.
	 */
//	void locationChanged(in long lat , in long lng);

}

